package com.xiaoy.core.base.dictionary.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xiaoy.core.base.dictionary.dao.DictionaryDao;
import com.xiaoy.core.base.dictionary.entity.Dictionary;
import com.xiaoy.page.PageWrapper;

@Service("dictionaryService")
public class DictionaryService {
	
	@Resource
	private DictionaryDao dao ;
	
	public List<String> getValueByCode (String code){
		
		return null;
	}
	
	public PageWrapper filterPage (PageWrapper page) {
		
//		Map<String,List<String>> store = new HashMap<String, List<String>>();
//		store.putAll(DictionaryFileService.getAllValue());
//		page.setResultData(store);
		
		dao.findPage(page, page.getFilters());
		
		return page;
	}
	
	
	
	public Dictionary getDictionary (long id) {
		return dao.get(id);
	} 
	
	
	
	
}
